#include "./../Include/public.h"
void manage_course()
{
	system("clear");
	
	while (1) {
		printf("******欢迎使用课程模块管理******\n");
		printf("1: 查看所有课程信息\n");
		printf("2: 通过课程名查看课程信息\n");
		printf("3: 通过课程号查看课程信息\n");
		printf("4: 添加课程\n");
		printf("5: 更新课程信息\n");
		printf("6: 删除课程\n");
		printf("7: 返回主菜单\n");
		int op;
		scanf("%d", &op);
		if (op == 7) return ;
		switch (op) {
			case 1:
				show_course();
				break;
			case 2:
				show_courseByName();
				break;
			case 3:
				show_courseByCno();
                break;
			case 4:
				add_course();
				break;
			case 5:
				update_course();
				break;
			case 6:
				del_course();
				break;
			default:
				printf("输入有误，重新输入！\n");
				break;
		}
		
	}
	
	
	
}
